import request from '../axios/request.js'

// 登录请求
export const loginRequest = data => {
    return request.post('/login', data)
}

// 退出登录请求
export const logoutRequest = () => {
    return request.get('/logout')
}

// 获取登录的用户信息
export const loginUserRequest = () => {
    return request.get('/loginUser')
}

// 注册请求
export const registryRequest = data => {
    return request.post('/registry', data)
}

// 修改密码请求
export const updatePasswordRequest = data => {
    return request.post('/updatePassword', data)
}

// 获取登录的用户菜单
export const menusRequest = () => {
    return request.get('/user/menus')
}